package com.whmskj.xjlhsc.gongweiji.scheduling.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.whmskj.xjlhsc.controller.vo.Result;
import com.whmskj.xjlhsc.gongweiji.scheduling.pojo.SchedulingDTO;
import com.whmskj.xjlhsc.gongweiji.scheduling.service.ISchedulingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jiaruchun
 * @date 2025-09-24 16:06
 */
@SaIgnore
@RestController
@RequestMapping("/gwj/scheduling")
public class GonweijiSchedulingController {
    @Autowired
    private ISchedulingService schedulingService;

    @PostMapping
    public Result scheduling(@RequestBody SchedulingDTO schedulingDTO){
        return Result.success(schedulingService.scheduling(schedulingDTO));
    }


}
